home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Language / Compiler / Builtins / Condition.m < prev    next >
Encoding:
Text File  |  1990-08-16  |  732 b   |  23 lines

  1. % @(#)Condition.m    1.1  3/6/87
  2. %
  3. export _ConditionObject to "Builtins"
  4.  
  5. const _ConditionObject == immutable object _ConditionObject
  6.   % Conditions implement Hoare style condition semantics, with the following
  7.   % exceptions:
  8.   %     1.  There is no urgent queue, signalers are placed at the head of 
  9.   %         the monitor entry queue, and thus successive signals are 
  10.   %         rescheduled in LIFO order.
  11.   export create, getSignature
  12.   const ConditionType == type ConditionType
  13.   end ConditionType
  14.   function getSignature -> [result : Signature]
  15.     result <- ConditionType
  16.   end getSignature
  17.   operation create -> [result : ConditionType]
  18.     result <- object aCondition
  19.     end aCondition
  20.   end create
  21. end _ConditionObject
  22.